package org.nanotek.mq.receive;

import javax.jms.Destination;
import javax.jms.Message;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jms.listener.DefaultMessageListenerContainer;

public class BaseReceiverTest implements Executor<BaseMessageListener,Message> {

	public BaseReceiverTest() {
	}

	private static ClassPathXmlApplicationContext ctx;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ctx = new ClassPathXmlApplicationContext(new String[] {"activemq-config/base-activemq-context.xml" , "activemq-config/jms-exception-listener.xml"});
		BaseMessageListener listener = (BaseMessageListener) ctx.getBean("baseMessageListener");
		assert (listener !=null);
		DefaultMessageListenerContainer container = (DefaultMessageListenerContainer) ctx.getBean("jmsContainer");
	}


	@Override
	public void holdListener(BaseMessageListener t1) {
		// TODO Auto-generated method stub

	}

	@Override
	public void processMessage(Message t1) {
		// TODO Auto-generated method stub

	}
}
